home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 11461 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: news.interpath.net!softbase
  2. From: softbase@mercury.interpath.com (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help, question on Visual C++ 4.0?
  5. Date: 24 Mar 1996 16:19:49 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Distribution: world
  8. Message-ID: <4j3sn5$rnm@news.interpath.net>
  9. References: <4iu5u4$t5r@pnn.projo.com>
  10. NNTP-Posting-Host: mercury.interpath.com
  11. X-Newsreader: TIN [version 1.2 PL2]
  12.  
  13. John A. Gesualdi (jgesuald@projo.com) wrote:
  14.  
  15. : I'm learning C programming on my Linux system using a gnu compiler.
  16. : Recently I purchased Microsoft Visual C++ 4.0 development system, I'm
  17. : not trying to learn C++ or MFC peogrammigng , I just wanted a compiler
  18. : that runs under win.
  19.  
  20. Talk about overkill! VC++ 4.0 just to compile C programs? 
  21.  
  22. :  Under Unix I can use the script commamnd to record the compiling
  23. :  session and record program output when run, this output goes to a file
  24. :  that I can print out, this way I can turn in my homework. Does anyone
  25. :  know of a way to capture/print the output of compiling a source file
  26. :  and running a program with Visual C++ 4.0 ?  My programs are basic
  27. :  single source file which use the console application or basic
  28. :  stdin/stdout interface.
  29.  
  30. You really have many options. Here's two I recommend:
  31.  
  32. 1. Generate EasyWin applications, and use the built in cut & paste to
  33. capture the finished output to something that will print it out.
  34. EasyWin will cut & paste by default.
  35.  
  36. 2. Generate console mode Win32 applications. Use normal I/O redirection
  37. to pipe the output into a file. Or, even better, use something like
  38. Programmer's File Editor which can run a console mode program and
  39. capture all the output.
  40.  
  41. Scott
  42.  
  43.  
  44.